export default {
	state: () => ({
		count: 0
	}),
	mutations: {
		someMutation(state) {
			state.count++
			console.log(1111)
		}
	},
	actions: {
		actionSomeMutation({
			commit
		}) {
			return new Promise((resolve, reject) => {
				setTimeout(() => {
					console.log(444)
					commit('someMutation')
					resolve()
				}, 1000)
			})
		}
	}
}
